package com.hdax.dm.Controller;

import com.hdax.dm.dto.IndexlineNavDto;
import com.hdax.dm.service.ItemTypeService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/item")
public class IndexlineNavController {

    @Autowired
    private ItemTypeService itemTypeService;

    /**
     * 首页横向导航接口
     */
    @PostMapping("index/lineNav")
    public CommonResponse<List<IndexlineNavDto>> indexlinenav(){
        return itemTypeService.linenavs();
    }
}
